package edu.hdu.hangzhe.bytecode.domain;

import org.objectweb.asm.Label;

public class LocalVariable {
    private int slot;
    private String name;
    private String signature;
    private int startLine;
    private int endLine;
    private Label startLabel;
    private Label endLabel;

    public LocalVariable(String name, int slot, Label startLabel, Label endLabel) {
        this.name = name;
        this.slot = slot;
        this.startLabel = startLabel;
        this.endLabel = endLabel;
    }

    public int getSlot() {
        return slot;
    }

    public int getStartLine() {
        return startLine;
    }

    public int getEndLine() {
        return endLine;
    }

    public String getName() {
        return name;
    }

    public void setStartLine(int startLine) {
        this.startLine = startLine;
    }

    public Label getStartLabel() {
        return startLabel;
    }

    public Label getEndLabel() {
        return endLabel;
    }

    public void setEndLine(int endLine) {
        this.endLine = endLine;
    }
}
